import request from '@/utils/request'

//选择器数据
export const gettableListApi = (params: Object) => {
    return request({
        url: 'table/list',
        method: 'get',
        params
    })
}
export const getclassifyListApi = (params: Object) => {
    return request({
        url: 'classify/list',
        method: 'get',
        params
    })
}
export const getdishesListApi = (params: Object) => {
    return request({
        url: 'dishes/list',
        method: 'get',
        params
    })
}
//新增
export const postOrderSaveApi = (data: Object) => {
    return request({
        url: 'order/save',
        method: 'post',
        data
    })
}
// 修改台桌state
export const postTableApi = (data: Object) => {
    return request({
        url: 'table/modify',
        method: 'post',
        data
    })
}